package cn.xzhang.boot.model.dto.wallpaperCategories;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 壁纸分类基础信息类
 *
 * @author <a href="https://github.com/XiaoZhangCode">XiaoZhangCode</a>
 */
@Data
@Schema(name = "壁纸分类基础信息类", description = "壁纸分类基础信息")
public class WallpaperCategoriesBaseDTO implements Serializable {

    @NotEmpty(message = "分类名称不能为空")
    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "排序字段")
    private Integer sort;

    @NotNull(message = "分类缩略图地址不能为空")
    @Schema(description = "分类缩略图地址",requiredMode = Schema.RequiredMode.REQUIRED)
    private String picUrl;

    /**
     * @link {@link cn.xzhang.boot.model.enums.CommonStatusEnum}
     */
    @Schema(description = "是否为推荐分类(0否1是)",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer selected = 0;

    /**
     * @link {@link cn.xzhang.boot.model.enums.CommonStatusEnum}
     */
    @Schema(description = "是否启用(0否1是)",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer enabled = 1;


}
